# -*- coding: utf-8 -*-
# File : user.py
# Author: taoyahui
# Date : 2021/10/17

from config import db


class User(db.Model):
    __tablename__ = 'user'
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String)
    password = db.Column(db.String)
    address = db.Column(db.String)
    role = db.Column(db.String)

    def __init__(self, username, password, address, role):
        self.username = username
        self.password = password
        self.address = address
        self.role = role
